package com.molichuxing.services.infrastructure.bean;

import java.io.Serializable;
import java.time.LocalDateTime;

public class SensitiveWordBean implements Serializable {
    /**
     * 主键 id
     */
    private Integer id;

    /**
     * 敏感词 words
     */
    private String words;

    /**
     * 敏感词替换符 words_flag
     */
    private String wordsFlag;

    /**
     * 0:启用，1:禁用 status
     */
    private Boolean status;

    /**
     * 创建时间 gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间 gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * permission_sensitive_word
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     * @date 2019-11-18 11:29:41
     * @return id 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键
     * @date 2019-11-18 11:29:41
     * @param id 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 敏感词
     * @date 2019-11-18 11:29:41
     * @return words 敏感词
     */
    public String getWords() {
        return words;
    }

    /**
     * 敏感词
     * @date 2019-11-18 11:29:41
     * @param words 敏感词
     */
    public void setWords(String words) {
        this.words = words == null ? null : words.trim();
    }

    /**
     * 敏感词替换符
     * @date 2019-11-18 11:29:41
     * @return words_flag 敏感词替换符
     */
    public String getWordsFlag() {
        return wordsFlag;
    }

    /**
     * 敏感词替换符
     * @date 2019-11-18 11:29:41
     * @param wordsFlag 敏感词替换符
     */
    public void setWordsFlag(String wordsFlag) {
        this.wordsFlag = wordsFlag == null ? null : wordsFlag.trim();
    }

    /**
     * 0:启用，1:禁用
     * @date 2019-11-18 11:29:41
     * @return status 0:启用，1:禁用
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * 0:启用，1:禁用
     * @date 2019-11-18 11:29:41
     * @param status 0:启用，1:禁用
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /**
     * 创建时间
     * @date 2019-11-18 11:29:41
     * @return gmt_create 创建时间
     */
    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 创建时间
     * @date 2019-11-18 11:29:41
     * @param gmtCreate 创建时间
     */
    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 修改时间
     * @date 2019-11-18 11:29:41
     * @return gmt_modified 修改时间
     */
    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
     * 修改时间
     * @date 2019-11-18 11:29:41
     * @param gmtModified 修改时间
     */
    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SensitiveWordBean other = (SensitiveWordBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWords() == null ? other.getWords() == null : this.getWords().equals(other.getWords()))
            && (this.getWordsFlag() == null ? other.getWordsFlag() == null : this.getWordsFlag().equals(other.getWordsFlag()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWords() == null) ? 0 : getWords().hashCode());
        result = prime * result + ((getWordsFlag() == null) ? 0 : getWordsFlag().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", words=").append(words);
        sb.append(", wordsFlag=").append(wordsFlag);
        sb.append(", status=").append(status);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}